import { defineStore } from "pinia";
import { createPersistedState } from "pinia-plugin-persistedstate";

export const useUserStore = defineStore("user", {
  state() {
    return {
      multispanData: [],
      authentication: 1,
      useData: {},
      Refresh: 0,
      userName: "",
      userRegion: "市级",
      userType: "",
      district: "",
    };
  },
  persist: true,
  plugins: [createPersistedState()],
});
